import request from '@/utils/request'

const {
    get: $get,
    post: $post,
    delete: $delete,
    download: $download
} = request

// 查询设施信息全部
export const alarmFacilityList = data => {
    return $get('/alarm/alarmFacility/list', data)
}

// 查询设施信息列表
export const alarmFacilityPage = data => {
    return $get('/alarm/alarmFacility/page', data)
}

// 新增设施信息
export const alarmFacilityAdd = data => {
    return $post('/alarm/alarmFacility/add', data)
}

// 查询设施信息详情
export const alarmFacilityDetail = id => {
    return $get('/alarm/alarmFacility/detail/'+ id)
}

// 更新设施信息
export const alarmFacilityUpdate = data => {
    return $post('/alarm/alarmFacility/update', data)
}

// 删除设施信息
export const alarmFacilityDelete = id => {
    return $post('/alarm/alarmFacility/delete/'+ id)
}

// 导出设施信息
export const alarmFacilityExport = (data,fileName) => {
    return $download('/alarm/alarmFacility/export',data, fileName)
}
